/* =========================================
   1. CSS Variables (Theme)
   ========================================= */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    
    /* Premium Dark Palette */
    --color-bg: #0a0a0a;
    --color-surface: #1a1a1a;
    
    /* The Gradient (Used for backgrounds/borders) */
    --color-primary: linear-gradient(135deg, #8b5cf6, #ec4899);
    
    /* The Solid Color (Used for text hover and button borders) */
    --color-primary-solid: #8b5cf6; 

    --color-text: #e0e0e0;
    --color-text-secondary: #9e9e9e;
    --color-white: #ffffff;
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --header-height: 80px; /* Used for spacing */
}

/* =========================================
   2. Global Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 1rem auto 0;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-white);
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. Buttons & UI Elements
   ========================================= */
.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary-solid); 
}

.cta-button:hover {
    background: transparent;
    color: var(--color-primary-solid); 
    border-color: var(--color-primary-solid);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.nav-link.cta-button::after { display: none; }

.cta-button.large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: padding 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-header.scrolled {
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo Styling */
.nav-logo { margin: 0; padding: 0; }
.nav-logo img { height: 40px; width: auto; display: block; }
.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.logo-tagline {
    font-size: 0.89rem;
    font-family: var(--font-primary);
    color: var(--color-text-secondary);
    margin: 0;
    padding-top: 2px;
}

/* Navigation Menu Base */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    font-size: 0.95rem;
    cursor: pointer; /* Added cursor pointer */
}

.nav-link::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* ---------------------------------------------------------
   DROPDOWN MENU LOGIC (UPDATED)
   --------------------------------------------------------- */

/* --- DESKTOP: Hover Effect --- */
@media (min-width: 769px) {
    .nav-item.dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        background-color: #fff;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        min-width: 180px;
        z-index: 1002;
        top: 100%;
        left: 0;
        list-style: none;
        border-radius: 4px;
        padding: 0.5rem 0;
        
        /* Animation Prep */
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Show on Hover */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-menu li a {
        color: #333;
        padding: 10px 20px;
        display: block;
        font-size: 0.9rem;
        transition: background 0.2s;
        text-decoration: none;
    }

    .dropdown-menu li a:hover {
        background-color: #f1f1f1;
        color: var(--color-primary-solid);
    }
}

/* --- MOBILE: Click / Accordion Effect --- */
@media (max-width: 768px) {
    .nav-item.dropdown .dropdown-menu {
        display: none; /* Hidden by default */
        position: static; /* Pushes content down */
        width: 100%;
        box-shadow: none; 
        background-color: rgba(255, 255, 255, 0.05); /* Slight contrast */
        padding-left: 0;
        margin-top: 10px;
        list-style: none;
        border-left: 2px solid var(--color-primary-solid); /* Accent Line */
    }

    .dropdown-menu li a {
        color: #d1d1d1;
        padding: 12px 20px 12px 30px; /* Indent */
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block;
        text-decoration: none;
    }

    /* The class toggled by JS */
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --------------------------------------------------------- */

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.8)), url(''); /* Add your image URL here */
    background-size: cover;
    background-position: center;
    padding: 0 2rem;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-title .highlight { color: var(--color-primary); }

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* =========================================
   6. Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-surface); 
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.service-card ion-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: var(--color-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #8b5cf6; 
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--color-primary);
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.service-card:hover h3 { color: var(--color-white); }
.service-card:hover p { color: rgba(255, 255, 255, 0.9); }
.service-card:hover ion-icon {
    background: none; 
    -webkit-text-fill-color: initial;
    color: var(--color-white);
    transform: scale(1.1);
}

/* =========================================
   7. About Section
   ========================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* =========================================
   New Section: Our Vision
   ========================================= */
.vision {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.vision .section-title::after { margin: 1rem 0 0 0; }

/* =========================================
   8. Contact Section
   ========================================= */
.contact { background: var(--color-surface); }
.contact-subtitle { text-align: center; margin-bottom: 3rem; }

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

/* =========================================
   9. Footer
   ========================================= */
.footer {
    padding: 5rem 0 2rem 0;
    background: #050505;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 { color: var(--color-primary); font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--color-text-secondary); transition: 0.3s; }

.footer-col ul li a:hover { 
    color: var(--color-primary-solid); 
    padding-left: 5px; 
}

.social-links-footer a {
    font-size: 1.4rem;
    margin-right: 1rem;
    color: var(--color-text-secondary);
    transition: 0.3s;
}
.social-links-footer a:hover { color: #8b5cf6; }

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* Footer Logo Specific Styling */
.footer-col .nav-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-col .nav-logo img {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px;
    }
}

/* =================================================================
   10. RESPONSIVE MEDIA QUERIES (Layout Specifics)
   ================================================================= */

/* --- Tablet & Small Laptop --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .services-grid { gap: 1.5rem; }
    .container { padding: 0 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* --- Tablet Portrait / Mobile --- */
@media (max-width: 768px) {
    
    /* Navigation Layout */
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0; 
        gap: 0;
        flex-direction: column;
        background-color: var(--color-bg);
        width: 100%;
        height: 100vh; 
        padding-top: 6rem; 
        transition: 0.3s ease-in-out;
        z-index: 999; 
        /* Ensure it scrolls if menu is too long */
        overflow-y: auto; 
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-item { 
        margin: 0; /* Reset margins */
        width: 100%;
        text-align: center;
        padding: 0 2rem; /* Side padding for items */
    }

    .nav-link { 
        font-size: 1.5rem; 
        display: block;
        padding: 1.5rem 0;
    }
    
    /* Hero */
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 2rem; }

    /* About */
    .about-content { 
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }
    .about-image { order: -1; }

    /* Contact */
    .form-group { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links-footer { justify-content: center; display: flex; }
}

/* --- Small Mobile --- */
@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .cta-button.large { width: 100%; padding: 15px 20px; }
    .navbar { padding: 0 1rem; }
    .nav-logo { font-size: 1.5rem; }
    .nav-link { font-size: 1.2rem; }
    .container { padding: 0 1rem; }
}

/* ========
   STYLES FOR MODERN-SERVICES.HTML
   (Add to the bottom of style.css)
   ======== */

/* ========
   STYLES FOR MODERN-SERVICES.HTML
   (Add to the bottom of style.css)
   ======== */

.modern-services-layout {
    padding: 5rem 0;
}

.modern-services-container {
    display: grid;
    grid-template-columns: 1fr 2.5fr; /* Asymmetrical columns */
    gap: 4rem;
}

/* Column 1: Sticky Nav */
.modern-services-nav {
    position: sticky;
    top: 120px; 
    align-self: start; 
    height: calc(100vh - 120px);
}

.modern-services-nav ul {
    list-style: none;
}

.modern-services-nav li {
    margin-bottom: 1.5rem;
}

.modern-services-nav a {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-headings);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    padding-left: 20px;
    border-left: 3px solid #333;
}

.modern-services-nav a:hover {
    color: var(--color-white);
}

/* --- FIX 1: Use Solid Color for Active Text and Border --- */
.modern-services-nav a.active {
    color: var(--color-primary-solid);      /* Changed from gradient to solid */
    border-left-color: var(--color-primary-solid); /* Changed from gradient to solid */
}

/* Column 2: Content */
.service-content-item {
    margin-bottom: 8rem; 
}

/* --- FIX 2: Apply Gradient to Text Correctly --- */
.service-content-item h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    
    /* This makes the gradient work on text */
    background: var(--color-primary); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Fallback color if gradient fails */
    color: var(--color-primary-solid); 
}

.service-content-item p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.service-content-item img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.service-content-item ul {
    list-style: none;
    columns: 2;
}

.service-content-item ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

/* --- FIX 3: Use Solid Color for Checkmarks --- */
.service-content-item ul li::before {
    content: '\2713'; 
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary-solid); /* Changed from gradient to solid */
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .modern-services-container {
        grid-template-columns: 1fr; 
    }
    .modern-services-nav {
        position: relative;
        top: 0;
        height: auto;
        display: flex;
        border-bottom: 1px solid #333;
        padding-bottom: 1rem;
        margin-bottom: 3rem;
    }
    .modern-services-nav ul {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .modern-services-nav a {
        padding-left: 0;
        border-left: none;
        font-size: 1rem;
    }
    
    /* --- FIX 4: Mobile Active State --- */
    .modern-services-nav a.active {
        color: var(--color-primary-solid); /* Ensure this uses solid color too */
        border-bottom: 2px solid var(--color-primary-solid); /* visual indicator for mobile */
    }
}


/* ========
   STYLES FOR MODERN-ABOUT.HTML PAGE
   (Add to the bottom of style.css)
   ======== */

/* ======== Modern Story Section ======== */
.modern-story {
    padding: 6rem 0;
}

.modern-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem; /* Creates space between grid columns */
}

.modern-story-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.modern-story-text-box {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    /* This is the "modern" overlapping effect */
    transform: translateX(-25%); 
    z-index: 2; /* Sits on top of the image */
}

.modern-story-text-box h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.modern-story-text-box p {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* ======== Modern Team Section ======== */
/* We re-use .team background from the previous page */
.modern-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.modern-team-card {
    position: relative; /* Required for absolute positioning of text */
    border-radius: var(--border-radius);
    overflow: hidden; /* Hides image overflow */
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.modern-team-card:hover {
    transform: translateY(-10px);
}

.modern-team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1.2; /* Taller than wide */
    transition: transform 0.4s ease;
}

/* Zoom effect on hover */
.modern-team-card:hover img {
    transform: scale(1.1);
}

.modern-team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    /* Dark gradient from bottom to transparent */
    background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 100%);
}

.modern-team-info h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.modern-team-info p {
    font-size: 1rem;
    color: var(--color-primary);
    margin: 0;
}

/* ======== Modern Values Section ======== */
.modern-values-list {
    max-width: 900px; /* Constrain width for readability */
    margin: 0 auto;
}

.modern-value-item {
    display: grid;
    grid-template-columns: 60px 1fr; /* Icon column + Text column */
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #222;
}
.modern-value-item:first-child {
    padding-top: 0;
}
.modern-value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modern-value-icon ion-icon {
    font-size: 3rem;
    color: var(--color-primary);
}

.modern-value-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modern-value-text p {
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ======== Responsive Updates for Modern About Page ======== */
@media (max-width: 992px) {
    .modern-story-grid {
        grid-template-columns: 1fr; /* Stack on tablet */
    }
    .modern-story-text-box {
        transform: translateX(0); /* Remove overlap on stack */
        margin-top: -3rem; /* Pull up to create some overlap */
    }

    .modern-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-story-text-box {
        margin-top: 0;
    }
    .modern-team-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .modern-value-item {
        grid-template-columns: 1fr; /* Stack icon on top of text */
        gap: 1rem;
    }
}

/* ========
   STYLES FOR MODERN-CONTACT.HTML PAGE
   (Add to the bottom of style.css)
 /* ======== 
   VERTICAL STACK CONTACT LAYOUT
   (Image Top, Form Bottom)
   ======== */

.modern-contact-section {
    padding: 4rem 0 6rem 0;
    position: relative;
}

.contact-vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Space between Image and Form */
}

/* --- TOP SECTION: VISUAL BANNER --- */
.visual-banner-top {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for the banner */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: #000;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.6s ease;
}

/* Slight zoom on hover */
.visual-banner-top:hover .banner-img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.banner-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.banner-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

/* --- BOTTOM SECTION: FORM CARD --- */
.form-card-bottom {
    background: var(--color-surface);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    
    /* Center the form and constrain width for better UX */
    max-width: 900px;
    width: 100%;
    margin: 0 auto; /* Centers the card horizontally */
}

.form-card-bottom .section-title {
    text-align: center; /* Center title */
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}
/* Override pseudo-element centering */
.form-card-bottom .section-title::after {
    margin: 1rem auto 0 auto; 
}

.contact-divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 3rem 0;
}

/* Details Grid */
.modern-contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.modern-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modern-contact-item ion-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modern-contact-item h3 {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.modern-contact-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .visual-banner-top {
        height: 250px; /* Smaller banner on mobile */
    }
    
    .banner-overlay {
        padding: 1.5rem;
    }
    
    .banner-overlay h3 {
        font-size: 1.8rem;
    }

    .form-card-bottom {
        padding: 2rem;
    }

    .modern-contact-details {
        grid-template-columns: 1fr; /* Stack details */
        text-align: left;
    }

    .modern-contact-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .modern-contact-item ion-icon {
        margin-bottom: 0;
    }
}
/* ========
   STYLES FOR AUTH PAGES (login, forgot-password, logout)
   (Add to the bottom of style.css)
   ======== */

.auth-page {
    padding: 8rem 0 6rem; /* Same as page-hero */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.auth-container h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.auth-form {
    width: 100%;
}

.form-group-auth {
    margin-bottom: 1.5rem;
}

.form-group-auth label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-auth input {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group-auth input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Update this existing class */
.auth-options {
    display: flex;
    justify-content: space-between; /* Pushes Remember Me to left, Link to right */
    align-items: center;
    margin-bottom: 2rem;
}

/* Add these new classes */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.remember-me input {
    cursor: pointer;
    width: 16px; 
    height: 16px;
    accent-color: var(--color-primary); /* Makes the checkmark match your theme */
}

.remember-me label {
    cursor: pointer;
    user-select: none; /* Prevents text highlighting when clicking label */
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--color-primary);
}

/* Make auth button full-width */
.auth-container .cta-button {
    width: 100%;
    text-align: center;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-secondary);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Styles for logout.html */
.logout-content {
    text-align: center;
}

.logout-content .cta-button {
    display: inline-block;
    width: auto; /* Override full-width */
    margin-top: 1rem;
}
/* Wrapper to hold input and icon together */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* Position the eye icon */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%); /* Vertically center */
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    display: flex; /* Fixes icon alignment */
}

.password-toggle:hover {
    color: var(--color-primary);
}

/* Add padding to the right of input so text doesn't hit the eye */
.form-group-auth input[type="password"],
.form-group-auth input[type="text"] {
    padding-right: 45px; 
}
.error-message {
    color: #ff4d4d; /* Red color */
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    height: 1.2em; /* Keeps space so layout doesn't jump */
}



/* ========
   STYLES FOR 404 ERROR PAGE
   (Add to the bottom of style.css)
   ======== */

.error-page {
    padding: 8rem 0 6rem;
    min-height: 80vh; /* Make sure it takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-bg);
}

.error-container {
    max-width: 600px;
    width: 100%;
}

.error-title {
    font-size: 10rem; /* Huge "404" text */
    font-family: var(--font-headings); /* Playfair Display */
    color: var(--color-primary); /* The brand's gold color */
    font-weight: 700;
    line-height: 1; /* Tighten line height */
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(224, 176, 85, 0.1); /* Subtle glow */
}

.error-subtitle {
    font-size: 2.5rem;
    font-family: var(--font-headings);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.error-container p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-container .cta-button {
    display: inline-block; /* Not full-width */
    width: auto;
}

/* ========
   STYLES FOR SALES-DASHBOARD.HTML (FULLY RESPONSIVE)
   (Add this entire block to the bottom of style.css)
   ======== */

/* --- KPI Card Section --- */
.kpi-section {
    padding: 3rem 0;
    background: var(--color-bg); 
}

.kpi-grid {
    display: grid;
    /* THIS IS THE RESPONSIVE FIX:
      - It creates as many columns as can fit.
      - Each column is a minimum of 280px wide.
      - Any extra space is distributed (1fr).
      - This automatically handles all screen sizes.
    */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.kpi-card {
    background: var(--color-surface);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid var(--color-primary);
}

.kpi-card ion-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.kpi-text p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-text h3 {
    font-size: 1.75rem;
    color: var(--color-white);
    margin: 0;
    font-family: var(--font-primary); /* Use Poppins for numbers */
    font-weight: 600;
}

.kpi-trend {
    margin-left: auto;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-secondary);
    white-space: nowrap; /* Prevents wrapping */
}
.kpi-trend.positive {
    color: #4ade80; /* Green */
}
.kpi-trend.negative {
    color: #f87171; /* Red */
}

/* --- Chart Container Section --- */
.dashboard-charts-area {
    padding: 3rem 0 6rem 0;
    background: var(--color-surface); /* Darker background */
}

.chart-title {
    font-size: 1.8rem;
    font-family: var(--font-headings);
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.chart-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Container for the big bar chart */
.chart-container-large {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    /* NO fixed height - this allows it to be responsive */
}

/* Grid for the two smaller charts */
.chart-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-container-medium {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    /* NO fixed height */
}

/* --- Responsive for Charts & Mobile --- */

/* For Tablets: Stack the two bottom charts */
@media (max-width: 992px) {
    .chart-grid-double {
        grid-template-columns: 1fr; /* Stack charts */
    }
}

/* For Mobile: Reduce padding */
@media (max-width: 768px) {
    .chart-container-large,
    .chart-container-medium {
        padding: 1.5rem; /* Smaller padding on mobile */
    }
}

/* For small mobile: stack KPI card content */
@media (max-width: 480px) {
    .kpi-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .kpi-trend {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}